import {defineComponent, ref} from 'vue'

export default defineComponent({
    setup() {
        const count = ref(0)

        const increment = () => {
            count.value++
        }

        return () => (
            <div>
                <h1>Hello TSX in Vue 3!</h1>
                <p>Count: {count.value}</p>
                <el-button size="large" type="primary" onClick={increment}>Increment</el-button>
            </div>
        )
    }
})